import {createRouter, createWebHashHistory, createWebHistory} from 'vue-router'
import Home from '../views/Home.vue'
import Login from '../views/Login.vue'

const routes = [
    {
        path:'/Home',
        name:'Home',
        //component: ()=> import('../views/Home.vue')
        component:Home,
    },
    {
        path:'/',
        name:'Login',
        component: Login,
    },
    {
        path:'/SftpHome',
        name:'SftpHome',
        component: ()=> import('../views/SftpHome.vue')
    },
]


// const router = createRouter({
//     history: createWebHistory("/"),
//     routes:routes,
// })
const hash = createWebHashHistory();
const router = createRouter({
    //history: createWebHashHistory(""),
    history:createWebHistory(""),
    routes,
})



export default router;

